package morenoapp.model.drafts;

import javax.swing.JFileChooser;
import javax.swing.JFrame;
import org.jdesktop.application.Application;
import org.jdesktop.application.LocalStorage;

/**
 *
 * @author dmitry.mamonov
 */
public class LocalStorageDraft {
    public static void main(String[] args) throws Exception {
        LocalStorage ls = Application.getInstance().getContext().getLocalStorage();
        //ls.save("Hello", "hello.xml");
        Object obj = ls.load("hello.xml");
        System.out.println("obj = "+obj);

        JFrame f = new JFrame();
        f.setVisible(true);

        JFileChooser fc =new JFileChooser();
        fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        fc.setVisible(true);
        fc.showDialog(f, null);
    }
}
